// 用户管理
import request from '@/utils/request'
// 查询开户或者销户分页列表信息
export const gettablelistapi = params => request.get('mbm-microservice-biz/mbm/customer/page', { params })
// 根据建筑群id查询未配置的房间列表
export const getweipeilistapi = params => request.get('mbm-microservice-biz/mbm/customer/getUnConfiguredRoomByBuildingId', { params })
// 根据房间id查询表计列表
export const getroomgetbiaoapi = params => request.get('mbm-microservice-biz/mbm/archives/room/getListByRoomIds', { params })
// 开户新增
export const postopenkaihuapi = data => request.post('mbm-microservice-biz/mbm/customer/openAccount/add', data)
// 销户操作
export const postxiaohuapi = data => request.post(`mbm-microservice-biz/mbm/customer/openAccount/closeAccount?id=${data.id}`)
// 开户修改
export const postxiugaiapi = data => request.post('mbm-microservice-biz/mbm/customer/openAccount/update', data)
// 开户删除
export const postdelhuapi = data => request.post(`mbm-microservice-biz/mbm/customer/openAccount/delete?id=${data.id}`)
// 开户操作
export const postkaihulaapi = data => request.post(`mbm-microservice-biz/mbm/customer/openAccount/openAccount?id=${data.id}`)
// 读表计示数
export const getmetershishuapi = params => request.get('mbm-microservice-biz/mbm/archives/room/readDisplay', { params })
// 查询房间计量点树
export const getroomtreelistapi = params => request.get('mbm-microservice-biz/mbm/customer/getRoomMpTree', { params })
// 开户后修改增减计量点保存
export const postkaihuhouupdateapi=data=>request.post('mbm-microservice-biz/mbm/customer/openAccount/updateMeasuringPoint',data)